/**
 * @angular通用控制器
 * @name WfbPlatformAppApp
 * @description 路由，通用拦截器，通用表格渲染等配置
 * @auth YuHuanLong
 * @time 2017/06/22 16:20
 */

angular.module('WfbPlatformAppApp.Directive', [])
    .directive("leftMenu", ["$location", function ($location) {
        return {
            restrict: "AE",
            templateUrl: "/leftMenu.html",
            controller: function ($scope) {
                $scope.currentPage = $location.path();
            },
            link: function (scope, element, attr) {
            }
        }
    }])
    .directive("repeatMenu", function () {
        return {
            link: function (scope, element, attr) {
                if (scope.$last == true) {
                    scope.$eval(attr.repeatMenu)
                }
            }
        }
    });
